package com.javasee.rain.stock.model;

/**
 * 个股异动数据模型
 * 
 * @author : xinyanfei
 * @date : 2025/10/11
 * Copyright (c) 2025, 京东商城 All Rights Reserved.
 */
public class StockAlert {

    /**
     * 日期
     */
    private String date;

    /**
     * 板块名称
     */
    private String block;

    /**
     * 异动原因
     */
    private String reason;

    /**
     * 股票代码
     */
    private String code;

    /**
     * 股票名称
     */
    private String name;

    /**
     * 股份范围
     */
    private Double sharesRange;

    /**
     * 数量
     */
    private String num;

    /**
     * 天数
     */
    private Integer day;

    /**
     * 版数
     */
    private Integer edition;

    /**
     * 总上涨次数
     */
    private Integer totalRiseCount;

    // 构造函数
    public StockAlert() {}

    public StockAlert(String date, String block, String reason, String code, String name, 
                     Double sharesRange, String num, Integer day, Integer edition, Integer totalRiseCount) {
        this.date = date;
        this.block = block;
        this.reason = reason;
        this.code = code;
        this.name = name;
        this.sharesRange = sharesRange;
        this.num = num;
        this.day = day;
        this.edition = edition;
        this.totalRiseCount = totalRiseCount;
    }

    // Getter 和 Setter 方法
    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getBlock() {
        return block;
    }

    public void setBlock(String block) {
        this.block = block;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getSharesRange() {
        return sharesRange;
    }

    public void setSharesRange(Double sharesRange) {
        this.sharesRange = sharesRange;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
        this.day = day;
    }

    public Integer getEdition() {
        return edition;
    }

    public void setEdition(Integer edition) {
        this.edition = edition;
    }

    public Integer getTotalRiseCount() {
        return totalRiseCount;
    }

    public void setTotalRiseCount(Integer totalRiseCount) {
        this.totalRiseCount = totalRiseCount;
    }

    @Override
    public String toString() {
        return "StockAlert{" +
                "date='" + date + '\'' +
                ", block='" + block + '\'' +
                ", reason='" + reason + '\'' +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", sharesRange=" + sharesRange +
                ", num='" + num + '\'' +
                ", day=" + day +
                ", edition=" + edition +
                ", totalRiseCount=" + totalRiseCount +
                '}';
    }
}